# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-automat
_pkgname=Automat
pkgver=20.2.0
pkgrel=6
pkgdesc='Self-service finite-state machines for the programmer on the go.'
url='https://pypi.org/project/Automat/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-attrs')
makedepends=('python2-setuptools-scm' 'python2-m2r' 'python2-attrs')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('715cb5dc087288492e6465a29e7d8502a84fadf451bc3d29da86335ea1c20f8efd9549f0c1eaac8800559dd8001dd73736c3bfacdc6321c83a35d2288d69632c')

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  mv "$pkgdir/usr/bin/automat-visualize" "$pkgdir/usr/bin/automat-visualize2"
}

